package test888;

public class test {
    public static void main(String[] args) {
        Day day = new Day(2023,9);
        Dog dog=new Dog("李四",8,day);
        System.out.println(dog);
        dog.getDay().setYear(1111);
        //day.setYear(111);
        System.out.println(dog);

    }
}
